package com.hik.token;

import com.alibaba.fastjson.JSONObject;
import com.hik.utils.HikHcUtils;

import java.util.HashMap;

public class Test {
    public static void main(String[] args) {
       /* String indexCodes="{'indexCodes':['74CE2C37-98D6-4AD9-BDD5-4A09BF0F3C91']}";
        String page="{'pageNo':1,'pageSize':10}";
        String add="{'terminals':[{'deviceType':'1','port':1720,'IP':'10.17.38.16','name':'终端1','remark':'','rtspUrl':'','treatyType':'H323','userName':'admin','userPwd':'Hik12345+'}]}";
        String con="{'title':'测试'，'type':'byTime','startTime','2020-03-30 22:03','regular':'null','durationTime':33,'mode':'2x2','mcuIndexCode':''}";


        JSONObject jsonObject= HikHcUtils.hySelect("{'title':'','startTime':'','endTime':'','status':1,'pageNo':2,'pageSize':10}");
      *//* JSONObject jsonObject=HikHcUtils.hyGetUrl("1565363138");*/
        String add[]={"1","2"};
        HashMap<String,Object> map=new HashMap<String, Object> ();
        map.put("prolongTime",false);
        map.put("terminalIndexCodes",add);
        String str=JSONObject.toJSONString(map);
        System.out.println(str);

    }
}
